//
//  WLTabBar.h
//  WLTabBar
//
//  Created by tanxl on 2019/12/29.
//  Copyright © 2019 tanxl. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "WLTabBarItem.h"
//#import "UITabBarItem+GTAnimatedImage.h"

@class WLTabBar;
@protocol WLTabBarDelegate <NSObject>

- (BOOL)tabBar:(WLTabBar *)tabBarView didSelectedItemFrom:(NSInteger)from to:(NSInteger)to;

@end

@interface WLTabBar : UIView

- (void)addTabBarItem:(UITabBarItem *)item index:(NSInteger)index isEnd:(BOOL)isEnd;

@property (nonatomic, strong) NSMutableArray <WLTabBarItem *>*tabBarItems;

@property (nonatomic, strong) WLTabBarItem *selectedItem;

@property (nonatomic, weak) id<WLTabBarDelegate> delegate;

// 以下是对WLTabBarItem属性的暴露
@property (nonatomic, strong) UIColor *itemTitleColor;
@property (nonatomic, strong) UIColor *itemSelectedTitleColor;
@property (nonatomic, strong) UIFont *itemTitleFont;
@property (nonatomic, strong) UIFont *badgeTitleFont;

@end



